turn the tables
Games like backgammon are known as 'tables' games. The phrase 'turn the tables' derives from these games and from the practise of reversing the board so that players play from their opponent's previous position.
https://gyazo.com/12825c06683f6a222c9dbf7f98148c2a
【人と】形勢を逆転させる; 【人に】仕返しをする «on» (!受け身も可能) .
e.g. police invited householders to a seminar on how to turn the tables on burglars.